/**
 * 首页
 */
const router = require('koa-router')()

router.get('/', async (ctx) => {
  await ctx.render('default/index')
})

/**
 * 前台和后台匹配路由的写法不一样
 */
router.get('/case', async (ctx) => {
  await ctx.render('default/case')
})

router.get('/about', async (ctx) => {
  await ctx.render('default/about')
})

module.exports = router.routes()